.class public Lcom/waiqin365/lightapp/kaoqin/a/m;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->b:Ljava/util/ArrayList;

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->b:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kaoqin/a/m;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->a:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kaoqin/a/m;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->b:Ljava/util/ArrayList;

    return-object v0
.end method


# virtual methods
.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 7

    const v4, 0x7f02043d

    const v3, 0x7f02043c

    const/16 v6, 0x8

    const/4 v5, 0x0

    if-nez p2, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0302cc

    invoke-virtual {v0, v1, p3, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/waiqin365/lightapp/kaoqin/a/o;

    const/4 v0, 0x0

    invoke-direct {v1, p0, v0}, Lcom/waiqin365/lightapp/kaoqin/a/o;-><init>(Lcom/waiqin365/lightapp/kaoqin/a/m;Lcom/waiqin365/lightapp/kaoqin/a/n;)V

    const v0, 0x7f0c0e52

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->a:Landroid/view/View;

    const v0, 0x7f0c0e54

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->b:Landroid/view/View;

    const v0, 0x7f0c0e53

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->c:Landroid/widget/ImageView;

    const v0, 0x7f0c0e55

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->d:Landroid/widget/TextView;

    const v0, 0x7f0c0e56

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/CircleImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->e:Lcom/waiqin365/base/login/mainview/CircleImageView;

    const v0, 0x7f0c0e57

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->f:Landroid/widget/TextView;

    const v0, 0x7f0c0e59

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->h:Landroid/widget/TextView;

    const v0, 0x7f0c0e58

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->g:Landroid/widget/RelativeLayout;

    const v0, 0x7f0c0e5a

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->i:Landroid/widget/ImageView;

    const v0, 0x7f0c0e5b

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->j:Landroid/widget/TextView;

    const v0, 0x7f0c0e5c

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->k:Landroid/widget/ImageView;

    const v0, 0x7f0c0e5d

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/kaoqin/a/o;->l:Landroid/view/View;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v2, v1

    :goto_0
    if-nez p1, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-eq p1, v0, :cond_3

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->b:Landroid/view/View;

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->a:Landroid/view/View;

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->c:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->f:Landroid/widget/TextView;

    const-string/jumbo v1, "#999999"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;

    iget-object v1, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->d:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;->f:Ljava/lang/String;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->a:Landroid/content/Context;

    iget-object v3, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->e:Lcom/waiqin365/base/login/mainview/CircleImageView;

    iget-object v4, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;->b:Ljava/lang/String;

    invoke-static {v1, v3, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;Landroid/widget/ImageView;Ljava/lang/String;)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->f:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;->h:Ljava/lang/String;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;->e:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;->c:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_6

    :cond_0
    iget-object v1, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->h:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;->e:Ljava/lang/String;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->g:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v5}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v1, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;->e:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v1, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->h:Landroid/widget/TextView;

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_1
    :goto_2
    iget-object v1, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;->c:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_8

    iget-object v1, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->i:Landroid/widget/ImageView;

    invoke-virtual {v1, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->j:Landroid/widget/TextView;

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v3, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->j:Landroid/widget/TextView;

    iget-object v1, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;->d:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_7

    const-string/jumbo v1, "\u5b9a\u4f4d\u5931\u8d25"

    :goto_3
    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->g:Landroid/widget/RelativeLayout;

    new-instance v2, Lcom/waiqin365/lightapp/kaoqin/a/n;

    invoke-direct {v2, p0, v0}, Lcom/waiqin365/lightapp/kaoqin/a/n;-><init>(Lcom/waiqin365/lightapp/kaoqin/a/m;Lcom/waiqin365/lightapp/kaoqin/c/a/b;)V

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :goto_4
    return-object p2

    :cond_2
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kaoqin/a/o;

    move-object v2, v0

    goto/16 :goto_0

    :cond_3
    if-nez p1, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_4

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->b:Landroid/view/View;

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->a:Landroid/view/View;

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->c:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->f:Landroid/widget/TextView;

    const-string/jumbo v1, "#51bd89"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto/16 :goto_1

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_5

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->b:Landroid/view/View;

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->a:Landroid/view/View;

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->c:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->f:Landroid/widget/TextView;

    const-string/jumbo v1, "#51bd89"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto/16 :goto_1

    :cond_5
    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->b:Landroid/view/View;

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->a:Landroid/view/View;

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->c:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/a/m;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->f:Landroid/widget/TextView;

    const-string/jumbo v1, "#999999"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto/16 :goto_1

    :cond_6
    iget-object v1, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->g:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v6}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    goto/16 :goto_2

    :cond_7
    iget-object v1, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/b;->d:Ljava/lang/String;

    goto/16 :goto_3

    :cond_8
    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->i:Landroid/widget/ImageView;

    invoke-virtual {v0, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kaoqin/a/o;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    goto/16 :goto_4
.end method
